<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
	
	class Hro extends CI_Controller {

		function __construct()
		{
			parent::__construct();
			$this->load->helper('url');
		}

		function index()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function login()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function manage_plan()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-plan.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function add_plan()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-plan.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function edit_plan()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-plan.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function manage_staff()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-staff.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function add_staff()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["personal_profile"]  = $this->load->view('hro/ajax-poisition.php', null, true);
			$data["content"] = $this->load->view('hro/add-staff.php', $data, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function ajax_poisition()
		{
			$this->load->view('hro/ajax-poisition.php');
		}

		public function edit_staff()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["personal_profile"]  = $this->load->view('hro/ajax-poisition.php', null, true);
			$data["content"] = $this->load->view('hro/edit-staff.php', $data, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function manage_depart()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-depart.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function add_depart()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/add-depart.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function edit_depart()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/edit-depart.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function manage_skill()
		{
			$data["login_success"] = $this->load->view("login/login-success.php", null, true);
			$data["menu"] = $this->load->view('hro/menu.php', null, true);
			$data["content"] = $this->load->view('hro/manage-skill.php', null, true);
			$this->load->view('hro/manage-overal.php', $data);
		}

		public function add_skill()
		{

		}

		public function edit_skill()
		{
			
		}
	}